<template>
  <div class="common-layout">
    <el-container>
      <!-- <user_navigation /> -->
      <!-- <router-link :to="{ name: 'AppIndex', query: { phoneNumber: '123456789' } }">跳转到主页</router-link> -->

      <el-main>
        <el-row>
          <el-col :span="4" />
          <el-col :span="16">
            <div class="grid-content ep-bg-purple-light main_div">
              <div>
                <user_info />
                <!-- 个人信息组件 这个div大小和样式仅仅为看出来布局而写，不用管，只用把写好的组件放进来并把这个style删掉即可-->
              </div>
              <div>
                <user_orders />
                <!-- 订单组件 -->
              </div>
            </div>
          </el-col>
          <el-col :span="4" />
        </el-row>
      </el-main>
    </el-container>
  </div>
</template>

<script>
import user_orders from "@/components/user_orders.vue";
import user_info from "@/components/user_info.vue";
// import user_navigation from "@/components/user_navigation.vue";
export default {
  name: "UserPage",
  data() {
    return {
      f: true,
    };
  },
  components: {
    user_orders,
    user_info,
    // user_navigation,
  },
  methods: {},
  mounted() {},
};
</script>

<style lang="scss" scoped>
.common-layout {
  background: linear-gradient(rgb(255, 236, 254), white);
}

.el-col {
  border-radius: 4px;
}

// .main_div {
//   background-color: rgb(241, 241, 240);
// }
.el-row {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  box-sizing: border-box;
  justify-content: center;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}

/* 隐藏滚动条 */
/* ::-webkit-scrollbar {
  display: none;
} */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  width: 6px;
  background: rgba(#101f1c, 0.1);
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(144, 147, 153, 0.5);
  background-clip: padding-box;
  min-height: 28px;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
  transition: background-color 0.3s;
  cursor: pointer;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(144, 147, 153, 0.3);
}
</style>
